@extends('admin.layout')
@section('content')
    <div class="layui-card">

        <div class="layui-card-body">
            <form action="{{route('admin.goods.store')}}" method="post"  class="layui-form">
                {{csrf_field()}}
                <input type="hidden" id="goods_id" name="goods_id" value="{{$info->id?? 0}}">
                <div class="layui-tab" lay-filter="demo" style="padding-bottom: 60px">
                    <ul class="layui-tab-title">
                        <li class="layui-this">基本信息</li>
                        <li>邮件配置</li>
                        <li>商城配置</li>
                        <li>CMS配置</li>
                    </ul>
                    <div class="layui-tab-content">
                        <div class="layui-tab-item layui-show">
                            <div class="layui-form-item">
                                <label class="layui-form-label">网站名称：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="name" id="name"  value="{{$info->name?? ''}}" lay-verify="required"  lay-reqText="商品名称必填" placeholder="请输入参数名称" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">关键字：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="name" id="name"  value="{{$info->name?? ''}}" lay-verify="required"  lay-reqText="商品名称必填" placeholder="请输入参数名称" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">网站描述</label>
                                <div class="layui-input-block">
                                    <textarea placeholder="请输入商品简介" name="summary"  class="layui-textarea">{{$info->summary?? old('summary')}}</textarea>
                                </div>
                            </div>









                            <div class="layui-form-item">
                                <label class="layui-form-label">备案信息：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="weight"  value="{{$info->weight?? old('weight')}}"  placeholder="" autocomplete="off" class="layui-input">
                                </div>
                            </div>

                            <div class="layui-form-item">
                                <label class="layui-form-label">统计代码：</label>
                                <div class="layui-input-block">
                                    <textarea placeholder="请输入商品简介" name="summary"  class="layui-textarea">{{$info->summary?? old('summary')}}</textarea>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">网站版权：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="weight"  value="{{$info->weight?? old('weight')}}"  placeholder="" autocomplete="off" class="layui-input">
                                </div>
                            </div>



                            <div class="layui-form-item">
                                <label class="layui-form-label">开启网站：</label>
                                <div class="layui-input-block">
                                    <input type="checkbox" value="1" @if(isset($info->marketable) && $info->marketable) checked="" @endif name="marketable" lay-skin="switch" lay-filter="switchTest" lay-text="开启|关闭">
                                </div>
                            </div>







                        </div>
                        <div class="layui-tab-item">
                            <div class="layui-form-item">
                                <label class="layui-form-label">服务器地址：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="name" id="name"  value="{{$info->name?? ''}}" lay-verify="required"  lay-reqText="商品名称必填" placeholder="请输入参数名称" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">服务器端口：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="name" id="name"  value="{{$info->name?? ''}}" lay-verify="required"  lay-reqText="商品名称必填" placeholder="请输入参数名称" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">发件人邮箱：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="name" id="name"  value="{{$info->name?? ''}}" lay-verify="required"  lay-reqText="商品名称必填" placeholder="请输入参数名称" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">发件人密码：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="name" id="name"  value="{{$info->name?? ''}}" lay-verify="required"  lay-reqText="商品名称必填" placeholder="请输入参数名称" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>
                        <div class="layui-tab-item"  ></div>
                        <div class="layui-tab-item"  ></div>
                        <div class="layui-tab-item"> </div>
                    </div>
                </div>


                <div class="layui-footer">
                    <button class="layui-btn" lay-submit="" lay-filter="component-form-demo1">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>


            </form>
        </div>
    </div>
@endsection
@section('script')
    <style>
        .layui-form-label{width: 120px;}
        .layui-input-block { margin-left: 150px;}
    </style>

    <script>
        layui.use(['layer', 'form','jquery','formSelects','strpy','inputTags','element','laytpl'], function(){
            var layer = layui.layer,
                form =layui.form,
                element=layui.form,
                laytpl = layui.laytpl,
                inputTags = layui.inputTags,
                $  = layui.jquery;

        });
    </script>

@endsection